package com.bbx.taxi.client.Task;

import android.app.Activity;

import com.bbx.api.sdk.model.passanger.CouponUsableBulid;
import com.bbx.api.sdk.net.base.BaseNetwork;
import com.bbx.api.sdk.net.passeger.conn.CouponUsableNet;
import com.bbx.taxi.client.Bean.Message.ObserverListener.DATA_TYPE;

/** 
 * @Path com.bbx.taxi.client.Task.MyCouponUsableTask.java
 * @Author 严旭文
 * @Date 2016-8-24 上午9:28:17
 * @Company 蓝海（福建）信息技术有限公司
 * @Description
 * 获取可用优惠劵
 */
public class MyCouponUsableTask extends BaseTask{
	  public DATA_TYPE TYPE=DATA_TYPE.COUPONUSABLE;
	    CouponUsableBulid mCouponUsableBulid;
	    CouponUsableNet mCouponUsableNet;
	    boolean isShow;
		public MyCouponUsableTask(Activity context,CouponUsableBulid mCouponUsableBulid,boolean isShow) {
			super(context);
			this.isShow=isShow;
			this.mCouponUsableBulid=mCouponUsableBulid;
		}
		@Override
		public boolean isShow() {
			return isShow;
		}
		@Override
		public boolean isReturnString() {
			return true;
		}
		@Override
		public boolean condition() {
			// TODO Auto-generated method stub
			return true;
		}
		public void request() {
			setType(TYPE,mCouponUsableBulid);
		}
		@Override
		public void success(int status,Object object) {
			// TODO Auto-generated method stub
			
		}
		@Override
		public void failed(int status, String msg,String message) {
			// TODO Auto-generated method stub
			
		}
		@Override
		public BaseNetwork getBaseNetwork() {
			return new CouponUsableNet(context);
		}

}
